<#--
/**
 * Copyright 2012 Claude Houle claude.houle@gmail.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-->
<#macro frame_header i18n username="" environment="" timestamp="" urlLogout="/logout" urlSettings="" urlHelp="">
<#escape x as x?html>
<div class="uic-header ">
	<#if username != "">
		<div class="uic-header-env-info-lbl">${i18n("lblUsername")}</div>
		<div class="uic-header-env-info-val">${username}</div>
    </#if>

    <#if environment != "">
    	<div class="uic-header-env-info-lbl">${i18n("lblEnvironment")}</div>
		<div class="uic-header-env-info-val">${environment}</div>
    </#if>

   	<#if timestamp != "">
		<div class="uic-header-env-info-lbl">${i18n("lblTimestamp")}</div>
		<div class="uic-header-env-info-val">${timestamp}</div>
	</#if>

	<#if urlLogout != "">
		<div class="uic-header-link-sep">|</div>
		<div class="uic-header-link"><a id="lnkLogout" href="${urlLogout}">${i18n("lnkLogout")}</a></div>
	</#if>

	<#if urlSettings != "">
		<div class="uic-header-link-sep">|</div>
		<div class="uic-header-link"><a id="lnkSettings" href="${urlSettings}">${i18n("lnkSettings")}</a></div>
	</#if>

	<#if urlHelp != "">
		<div class="uic-header-link-sep">|</div>
		<div class="uic-header-link"><a id="lnkHelp" href="${urlHelp}">${i18n("lnkHelp")}</a></div>
	</#if>
</div>
</#escape>
</#macro>